|
|
1.2 | RIP Version 2 | ||
| 1.2.7 | Default routes |
By default, routers learn paths to
destinations three different ways:
In Figure
ip route 172.16.1.0 255.255.255.0 172.16.2.1 The
ip default-network
command establishes a default route in networks using dynamic routing
protocols:
ip default-network 192.168.20.0 Generally after the routing table has been set to handle all the networks that must be configured, it is often useful to ensure that all other packets go to a specific location. One example is a router that connects to the Internet. This is called the default route for the router. All the packets that are not defined in the routing table will go to the nominated interface of the default router. The ip default-network command is usually configured on the routers that connect to a router with a static default route. In Figure
ip route 0.0.0.0 0.0.0.0 192.168.20.1 The zeros represent any destination network with any mask. Default routes are referred to as quad zero routes. In the diagram, the only way Hong Kong 1 can go to the Internet is through the interface 192.168.20.1.
|